<html>
<head>
<style>
@page {
  size: 160px 300px;
  margin: 0;
}
body {
  margin: 10px 30px;
  border: 1px solid red;
  word-wrap: break-word;
}
</style>
</head>
<body>
This isaverylotof words someofwhichwill fitontheline others whichwillnot all
intheoneparagraph. Soletscelebratelongwords and short words thatfitsomewhere.
</body>
</html>
